package zyz.framework.entity;

/**
 * Created by wp on 2017/1/15.
 */
public class DySafeResponse<T> {

    public static String SUCCESS = "success";
    public static String FAIL = "fail";
    public static String ERROR = "error";

    private String status;
    private String description;
    private T data;

    public DySafeResponse(String status, String description, T data){
        this.status = status;
        this.description = description;
        this.data = data;
    }

    public DySafeResponse(String status, String description){
        this.status = status;
        this.description = description;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
